<?php

namespace app\index\controller;

use app\BaseController;
use think\Request;
use think\response\Json;

class Index extends BaseController
{
    /**
     * index
     * @param Request $request
     * @return Json
     */
    public function index(Request $request): Json
    {
        return json(
            [
                'method' => $request->method(),
                'message' => 'SUCCESS',
            ]
        );
    }
}
